<?php include 'news_css_js.php'; ?>
<table width="988" cellspacing="0" cellpadding="0" border="0" align="center">
    <tbody><tr>
            <td width="9" background="/public/images/them/t.jpg">&nbsp;</td>

            <td width="970">
                <table width="970" cellspacing="0" cellpadding="0" border="0" align="center">

                    <tbody>
                        <?php include 'home_header.php'; ?>
                        <tr>
                            <td>
                                <div id="content-sidebar-wrap">

                                    <div class="hfeed" id="home-content">
                                        
                                        <div style="height: 210px;">
                                            <div id="slider-wrapper">
                                                <div id="slider" class="nivoSlider">
                                                    <?php foreach ($arySlider as $key => $value) {?>
                                                        <a target="_blank" href=""><img src="<?php echo $value['slider_image'];?>"></a>
                                                    <?php } ?>
                                                </div>
                                                <script type="text/javascript">
                                                    $(window).load(function() {
                                                        $('#slider').nivoSlider();
                                                    });
                                                </script>

                                            </div>
                                        </div>

                                        <div id="featured-top">
                                            <span>Tin mới</span>
                                            <div id="featured-first">
                                                <div class="feature-item-content">
                                                    <a href="/chitiet/<?php echo $aryFirtNews['news_id'];?>/<?php echo $aryFirtNews['news_title_filter'];?>.html" title="<?php echo $aryFirtNews['news_title'];?>">
                                                        <img src="<?php echo $aryFirtNews['news_large_image'];?>" title="<?php echo $aryFirtNews['news_title'];?>" alt="<?php echo $aryFirtNews['news_title'];?>"/>
                                                    </a>
                                                    <h2>
                                                        <a href="/chitiet/<?php echo $aryFirtNews['news_id'];?>/<?php echo $aryFirtNews['news_title_filter'];?>.html" title="<?php echo $aryFirtNews['news_title'];?>">
                                                        <?php echo $aryFirtNews['news_title'];?>
                                                        </a>
                                                    </h2>
                                                        <?php echo $aryFirtNews['news_content_filter'];?>
                                                </div>
                                            </div>
                                            <div id="featured-next">
                                                <ul>
                                                    <?php foreach ($aryTopNews as $key => $value) {?>
                                                    <li>
                                                        <h3>
                                                            <a href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>"><?php echo $value['news_title'];?></a>
                                                        </h3>
                                                        <a href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>">
                                                            <img src="<?php echo $value['news_main_image'];?>" class="fl" title="<?php echo $value['news_title'];?>" alt="<?php echo $value['news_title'];?>">
                                                        </a>
                                                        <p>
                                                            <?php echo $value['news_content_filter'];?>
                                                        </p>
                                                    </li>
                                                    <?php } ?>
                                                    </ul>
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <?php foreach ($aryNewsCategory as $key => $value) {?>
                                        <div id="homecat-1" class="homecat">
                                            <h2>
                                                <a href="/tin/<?php echo $value['news_category_id'];?>/<?php echo $value['news_category_filter'];?>.html" title="<?php echo $value['news_category_name'];?>">
                                                    <?php echo $value['news_category_name'];?>
                                                </a>|
                                                <?php foreach ($aryNewsSubCategory as $key => $subCat) {?>
                                                    <?php if($value['news_category_id'] == $subCat['news_category_parent']) {?>

                                                <a class="sub_new_category" href="/tin/<?php echo $subCat['news_category_id'];?>/<?php echo $subCat['news_category_filter'];?>.html" title="<?php echo $subCat['news_category_name'];?>">
                                                            <?php echo $subCat['news_category_name'];?>
                                                        </a>|
                                                    
                                                    <?php } ?>
                                                <?php } ?>
                                            </h2>
                                            <?php if(is_array($aryNewsData[$value['news_category_id']])){?>
                                                <?php foreach ($aryNewsData[$value['news_category_id']] as $keyNews => $newsValue) {?>
                                                    <?php if($newsValue['news_title']) {?>
                                                        <?php if($keyNews == 0){?>
                                                    <div class="homecat-item">
                                                        <a href="<?php echo $root_page;?>/chitiet/<?php echo $newsValue['news_id'];?>/<?php echo $newsValue['news_title_filter'];?>.html" title="<?php echo $newsValue['news_title'];?>">
                                                            <img  src="<?php echo $root_page;?><?php echo $newsValue['news_main_image'];?>" title="<?php echo $newsValue['news_title'];?>" alt="<?php echo $newsValue['news_title'];?>"/>
                                                        </a>
                                                        <div class="homecat-item-content">
                                                        <h3>
                                                            <a  title="<?php echo $newsValue['news_title'];?>" href="<?php echo $root_page;?>/chitiet/<?php echo $newsValue['news_id'];?>/<?php echo $newsValue['news_title_filter'];?>.html"><?php echo $newsValue['news_title'];?></a>
                                                        </h3>
                                                        <p>
                                                            <?php echo $newsValue['news_content_filter'];?>
                                                        </p>
                                                        </div>
                                                
                                                    </div>

                                                    <div class="clear">  </div>

                                                        <?php }else{ ?>
                                                    <ul>
                                                        <li>
                                                            <a href="/chitiet/<?php echo $newsValue['news_id'];?>/<?php echo $newsValue['news_title_filter'];?>.html" title="<?php echo $newsValue['news_title'];?>">
                                                                <?php echo $newsValue['news_title'];?>
                                                            </a>
                                                        </li>
                                                    </ul>
                                                    
                                                        <?php } ?>
                                                    <?php } ?>
                                                <?php }?>
                                            
                                            <?php }?>
                                            
                                        </div>
                                        <?php } ?>

                                    </div><!-- end #content -->
                                    <div id="sidebar">
                                        <?php include 'news_right_support.php';?>
                                    </div>
                                </div>
                            </td>
                        </tr>


                        <tr>
                            <td valign="top" align="center">

                                <?php include 'home_footer.php';?>
                            </td>
                        </tr>


                    </tbody>
                </table>
            </td>
            <td width="9" background="/public/images/them/p.jpg">&nbsp;</td>
        </tr>
    </tbody></table>

